ads

Affichage des articles dont le libellé est Line. Afficher tous les articles
Affichage des articles dont le libellé est Line. Afficher tous les articles

vendredi 11 septembre 2015

White line on display when its in sleep mode



I see lots of white line in the screen when the device is in sleep mode or when the background is black specially outdoor on direct sunlight or in heavy lighting condition but in indoors it normal.......please help



mardi 8 septembre 2015

screen got vertical line



don't know why it happen.
i already send back to LG repair, anyone have same issue???? and what make this appear?








Attached Thumbnails


Click image for larger version<br/><br/>Name:	IMG-20150907-WA0003.jpg<br/>Views:	N/A<br/>Size:	196.3 KB<br/>ID:	3466885
 














samedi 29 août 2015

android.view.InflateException: Binary XML file line #1: Error inflating class include



I have a certain App that was using different layouts for different activities, but much of the xml content was same. So I moved the content to a common xml and included that in the different layouts.

This is the common layout xml:


Code:


<LinearLayout xmlns:android="http;//schemas.android.com/apk/res/android"
              xmlns:app="http;//schemas.android.com/apk/res-auto"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:background="@color/background_color">

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="0dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:orientation="horizontal" >

        <ImageView
            android:id="@+id/img_newslist"
            android:layout_width="35dp"
            android:layout_height="35dp"
            android:scaleType="centerCrop"
            android:layout_margin="0dp"
            android:layout_gravity="center_vertical" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:padding="5dp"
            android:orientation="vertical"
            android:gravity="center_vertical">

            <TextView
                android:id="@+id/txt_newslistheading"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:maxLines="2"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="@color/text_color"
                android:textSize="14sp"
                android:text="Heading"/>

            <TextView
                android:id="@+id/txt_newslistdate"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:textColor="@color/text_color"
                android:text="Date"
                android:visibility="invisible"/>

        </LinearLayout>

    </LinearLayout>

</LinearLayout>


This is the layout xml that includes the above xml:


Code:


<include
    android:layout="@layout/lsv_item_list"
    android:id="@+id/lsv_item_recent"
    xmlns:android="http;//schemas.android.com/apk/res/android"
    xmlns:app="http;//schemas.android.com/apk/res-auto"/>


With these changes the app is failing at run time with the following error:


Quote:









08-29 13:48:59.717 32104-32104/com.apps.nis D/AndroidRuntime﹕ Shutting down VM
08-29 13:48:59.717 32104-32104/com.apps.nis E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.apps.nis, PID: 32104
android.view.InflateException: Binary XML file line #1: Error inflating class include
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:757)
at android.view.LayoutInflater.inflate(LayoutInflater .java:482)
at android.view.LayoutInflater.inflate(LayoutInflater .java:414)
at android.view.LayoutInflater.inflate(LayoutInflater .java:365)
at com.apps.nis.Adapter_Recent.getView(Adapter_Recent .java:43)
at android.widget.AbsListView.obtainView(AbsListView. java:2347)
at android.widget.ListView.makeAndAddView(ListView.ja va:1864)
at android.widget.ListView.fillDown(ListView.java:698 )
at android.widget.ListView.fillFromTop(ListView.java: 759)
at android.widget.ListView.layoutChildren(ListView.ja va:1673)
at android.widget.AbsListView.onLayout(AbsListView.ja va:2151)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.RelativeLayout.onLayout(RelativeLay out.java:1076)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.FrameLayout.layoutChildren(FrameLay out.java:579)
at android.widget.FrameLayout.onLayout(FrameLayout.ja va:514)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.support.v4.view.ViewPager.onLayout(ViewPag er.java:1594)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.RelativeLayout.onLayout(RelativeLay out.java:1076)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.FrameLayout.layoutChildren(FrameLay out.java:579)
at android.widget.FrameLayout.onLayout(FrameLayout.ja va:514)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.LinearLayout.setChildFrame(LinearLa yout.java:1703)
at android.widget.LinearLayout.layoutVertical(LinearL ayout.java:1557)
at android.widget.LinearLayout.onLayout(LinearLayout. java:1466)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.FrameLayout.layoutChildren(FrameLay out.java:579)
at android.widget.FrameLayout.onLayout(FrameLayout.ja va:514)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.LinearLayout.setChildFrame(LinearLa yout.java:1703)
at android.widget.LinearLayout.layoutVertical(LinearL ayout.java:1557)
at android.widget.LinearLayout.onLayout(LinearLayout. java:1466)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.widget.FrameLayout.layoutChildren(FrameLay out.java:579)
at android.widget.FrameLayout.onLayout(FrameLayout.ja va:514)
at android.view.View.layout(View.java:15671)
at android.view.ViewGroup.layout(ViewGroup.java:5038)
at android.view.ViewRootImpl.performLayout(ViewRootIm pl.java:2086)
at android.view.ViewRootImpl.performTraversals(ViewRo otImpl.java:1843)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl .java:1061)
at android.view.ViewRootImpl$TraversalRunnable.run(Vi ewRootImpl.java:5885)
at android.view.Choreographer$CallbackRecord.run(Chor eographer.java:767)
at android.view.Choreographer.doCallbacks(Choreograph er.java:580)
at android.view.Choreographer.doFrame(Choreographer.j ava:550)
at android.view.Choreographer$FrameDisplayEventReceiv er.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739 )
at android.os.Handler.dispatchMessage(Handler.java:95 )
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.jav a:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:698)
Caused by: java.lang.Cla




Previously the app was working fine. Can somebody help me understand what I am doing wrong? The relevant code that is failing is as follows:


Code:


                public View getView(final int position, View convertView, ViewGroup parent) {
                        View view = convertView;
                        ViewHolder holder;
                        if (view == null) {
                                LayoutInflater inflater = (LayoutInflater) activity
                                                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                                view = inflater.inflate(row, null);

                                holder = new ViewHolder();
                                view.setTag(holder);
                        } else {
                                holder = (ViewHolder) view.getTag();
                        }

                        if ((itemsLatest == null) || ((position + 1) > itemsLatest.size()))
                                return view;

        if (position % 2 == 1) {
            view.setBackgroundColor(row2Color);
        } else {
            view.setBackgroundColor(row1Color);
        }

                        objLatestBean = itemsLatest.get(position);

                        holder.txt_newsheadinglatest=(TextView)view.findViewById(R.id.txt_newslistheading);
                        holder.txt_newsdatelatest=(TextView)view.findViewById(R.id.txt_newslistdate);
                        holder.img_newslatest=(ImageView)view.findViewById(R.id.img_newslist);
                       
                        holder.txt_newsheadinglatest.setText(objLatestBean.getNewsHeading().toString());
                        holder.txt_newsdatelatest.setText(objLatestBean.getNewsDate().toString());

                        imageLoader.DisplayImage(Constant.getServerImageThumbs () + objLatestBean.getNewsImage().toString(), holder.img_newslatest);       
                       
                        return view;
                       
                }


PS: I have changed : to ; in the URL above. That is not an error.



mercredi 26 août 2015

[Rogers][Canadian][m8] Fails Line Drawing test for Notification Bar



I recently from Viper Rom lollipop to GPE and painfully came back to Viper 4.3 Lollipop
Since - I cannot pull notification bar EXCEPT the home screen and now even thats gone, although it works horizontally
I had a 4.4 Kit Kat Back up which I reverted to and issue remains, did data wipe, cache clean etc, still same
I did a line drawing test and as suspected the upper region is blank
Is this a coicidence? that after changing roms it killed something although I feel it might have acted up even b4 my recent Viper>GPE>Viper experiment
I am S-OFF
What do I please?

S/W Fix?
If HWD? Phone is still under 1 year, how do I make it so it looks stock and not get caught

Please help