Click here to Skip to main content
15,561,817 members
Home / Discussions / Android
   

Android

 
AnswerRe: Realize multipage app Pin
Afzaal Ahmad Zeeshan4-Sep-16 1:43
mveAfzaal Ahmad Zeeshan4-Sep-16 1:43 
QuestionWant to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
utkarsh.incarnate26-Aug-16 20:48
utkarsh.incarnate26-Aug-16 20:48 
QuestionRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Richard MacCutchan26-Aug-16 22:04
mveRichard MacCutchan26-Aug-16 22:04 
AnswerRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Member 1016528829-Aug-16 13:53
Member 1016528829-Aug-16 13:53 
QuestionRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
David Crow29-Aug-16 17:36
David Crow29-Aug-16 17:36 
GeneralRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Utkarsh Joshi 13-Sep-16 22:09
Utkarsh Joshi 13-Sep-16 22:09 
AnswerRe: Want to keep bluetooth device connection in entire application. Bluetooth connection is lost while switch to another activity ... ? Pin
Utkarsh Joshi 13-Sep-16 21:59
Utkarsh Joshi 13-Sep-16 21:59 
QuestionProblem with custom row in List View Pin
Andy_Bell26-Aug-16 10:38
Andy_Bell26-Aug-16 10:38 
I have problem with layout in my application. I'm using list view and I have defined a custom list row. The program is correctly executed, but layout has some problem.
The space between two consecutive row is excessive...

This is XML code that I use in application layout (main) "activityMain.xml"

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

    <TextView android:text="No contents" android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textView" />

    <ListView
        android:id="@+id/listView_InfoOnLine"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/textView"
        android:layout_centerHorizontal="true"
        android:background="@drawable/bkgreen"
        android:layout_marginTop="15dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="false"
        android:footerDividersEnabled="false"
        android:layout_alignParentEnd="true"
        android:divider="@null"
        android:dividerHeight="5dp"
        android:layout_alignParentStart="true"
        android:scrollIndicators="right"
        android:clickable="true" />
</RelativeLayout>


and this is the custm row in XML resource ("list_row.xml")

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="90dip"
    android:background="@drawable/bkglavander"
    android:orientation="vertical"
    android:padding="5dip" >

    <!--  ListRow Left sied Image -->
    <LinearLayout android:id="@+id/thumbnail"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="80dip"
        android:padding="3dip"
        android:layout_alignParentLeft="true"
        android:background="@drawable/bkgorange"
        android:layout_marginRight="5dip">

        <ImageView
            android:id="@+id/imaginiRSS"
            android:layout_width="50dip"
            android:layout_height="60dip"
            android:src="@drawable/bkgblack"/>

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_alignParentLeft="true">

            <!-- Title Of rss-->
            <TextView
                android:id="@+id/titoliRSS"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=". TITLE"
                android:textColor="#ff00aa00"
                android:typeface="sans"
                android:textSize="20dip"
                android:layout_marginRight="5dip"
                android:layout_marginLeft="5dip"
                android:textStyle="bold"/>

            <!-- Link -->
            <TextView
                android:id="@+id/linksRSS"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignTop="@id/titoliRSS"
                android:gravity="right"
                android:text=". LINK"
                android:layout_marginRight="5dip"
                android:layout_marginLeft="5dip"
                android:textSize="12dip"
                android:textColor="#ff0000ff"
                android:textStyle="bold"/>

            <!-- Description -->
            <TextView
                android:id="@+id/descrizioniRSS"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/titoliRSS"
                android:textColor="#343434"
                android:textSize="15dip"
                android:layout_marginRight="5dip"
                android:layout_marginLeft="5dip"
                android:layout_marginTop="1dip"
                android:text=". DESC." />
        </LinearLayout>
    </LinearLayout>
</LinearLayout>


What is wrong, please?
QuestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 11:02
David Crow26-Aug-16 11:02 
AnswerRe: Problem with custom row in List View Pin
Andy_Bell26-Aug-16 11:50
Andy_Bell26-Aug-16 11:50 
SuggestionRe: Problem with custom row in List View Pin
David Crow26-Aug-16 16:29
David Crow26-Aug-16 16:29 
QuestionHow download picture Pin
Andy_Bell25-Aug-16 13:21
Andy_Bell25-Aug-16 13:21 
AnswerRe: How download picture Pin
Richard MacCutchan25-Aug-16 21:45
mveRichard MacCutchan25-Aug-16 21:45 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 0:25
Andy_Bell26-Aug-16 0:25 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 1:02
mveRichard MacCutchan26-Aug-16 1:02 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 4:35
Andy_Bell26-Aug-16 4:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 4:45
mveRichard MacCutchan26-Aug-16 4:45 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 5:35
Andy_Bell26-Aug-16 5:35 
GeneralRe: How download picture Pin
Richard MacCutchan26-Aug-16 5:40
mveRichard MacCutchan26-Aug-16 5:40 
GeneralRe: How download picture Pin
Andy_Bell26-Aug-16 6:12
Andy_Bell26-Aug-16 6:12 
SuggestionRe: How download picture Pin
David Crow26-Aug-16 8:03
David Crow26-Aug-16 8:03 
Questionandroid: Using Global Multidimensional array variable in CustomView Pin
Member 984019022-Aug-16 19:32
Member 984019022-Aug-16 19:32 
AnswerRe: android: Using Global Multidimensional array variable in CustomView Pin
Richard MacCutchan22-Aug-16 23:12
mveRichard MacCutchan22-Aug-16 23:12 
PraiseRe: android: Using Global Multidimensional array variable in CustomView Pin
Member 984019023-Aug-16 18:58
Member 984019023-Aug-16 18:58 
QuestionRe: android: Using Global Multidimensional array variable in CustomView Pin
David Crow24-Aug-16 4:38
David Crow24-Aug-16 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.