Editing How to Create an RSS Reader on Android

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 138: Line 138:
  
 
'''item_layout.xml'''
 
'''item_layout.xml'''
 
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
<?xml version = "1.0" encoding = "utf-8"?>
+
<? xml version = "1.0" encoding = "utf-8"?>xml version = "1.0" encoding = "utf-8" ?>
    <android.support.v7.widget.cardView
+
<android.support.v7.widget.CardView xmlns: android = " http : // schemas . android . com / apk / res / android "<android.support.v7.widget.CardView xmlns: android = "  
        xmlns: android = "http://schemas.android.com/apk/res/android"
+
    xmlns: card_view = " http : // schemas . android . com / apk / res - auto "xmlns: card_view = "
        android: layout_width = "match_parent"
+
     Android: layout_width = "match_parent"Android: layout_width = "match_parent"
        android: layout_height = "match_parent"
+
     Android: layout_height = "match_parent"Android: layout_height = "match_parent"
        card_view: cardCornerRadius = "2dp"
+
    card_view: cardCornerRadius = "2dp"card_view: cardCornerRadius = "2dp"
        card_view: cardElevation = "2dp"
+
    card_view: cardElevation = "2dp"card_view: cardElevation = "2dp"
        card_view: cardUseCompatPadding = "true">
+
    card_view: cardUseCompatPadding = "true">card_view: cardUseCompatPadding = "true" >
 
 
     <RelativeLayout
 
        Android: layout_width = "match_parent"
 
        Android: layout_height = "match_parent"
 
        android: padding = "16dp">
 
 
 
        <! - MINIATURE ->
 
       
 
     <com.android.volley.toolbox.NetworkImageView
 
            android:layout_width = "80dp"
 
            android:layout_height = "80dp"
 
            android:id = "@+id/image"
 
            android:scaleType = "centerCrop"
 
            Android:layout_alignParentStart = "true"
 
            android: layout_below = "@+id/line"
 
            Android: layout_marginTop = "16dp" />
 
 
 
        <! - TITLE ->
 
 
 
        <TextView
 
            android:layout_width = "wrap_content"
 
            android:layout_height = "wrap_content"
 
            android:textAppearance = "?android:attr/textAppearanceSmall"
 
            android:text = "Title"
 
            android:id = "@+id/title"
 
            android:layout_marginBottom = "10dp"
 
            android:layout_toEndOf = "@+id/image"
 
            android:layout_alignTop = "@+id/image"
 
            android: layout_marginStart = "16dp" />
 
 
 
        <! - DESCRIPTION ->
 
 
 
        <TextView
 
            android:layout_width = "wrap_content"
 
            android:layout_height = "wrap_content"
 
            android:textAppearance = "?android:attr/textAppearanceSmall"
 
            android:text = "Description"
 
            android:id = "@+id/description"
 
            android:layout_marginBottom = "16dp"
 
            android:layout_below = "@+id/icon"
 
            android:layout_marginTop = "16dp" />
 
  
         <! - DIVIDING LINE ->
+
    <RelativeLayout<RelativeLayout
 +
         Android: layout_width = "match_parent"Android: layout_width = "match_parent"
 +
        Android: layout_height = "match_parent"Android: layout_height = "match_parent"
 +
        android: padding = "16dp">android: padding = "16dp" >
  
         <View
+
         <! - MINIATURE -><! - MINIATURE ->
             android:layout_width = "wrap_content"
+
        <com.android.volley.toolbox.NetworkImageView<com.android.volley.toolbox.NetworkImageView
             android:layout_height = "1dp"
+
             android: layout_width = "80dp"android: layout_width = "80dp"
             android:id = "@+id/line"
+
             Android: layout_height = "80dp"Android: layout_height = "80dp"
             android:background = "#ffe9e9e9"
+
             android: id = "@ + id / image"android: id = "@ + id / image"
             android:layout_below = "@+id/description" />
+
             android: scaleType = "centerCrop"android: scaleType = "centerCrop"
 +
            Android: layout_alignParentStart = "true"Android: layout_alignParentStart = "true"
 +
             android: layout_below = "@ + id / line"android: layout_below = "@ + id / line"
 +
            Android: layout_marginTop = "16dp" />Android: layout_marginTop = "16dp" />  
  
         <! - FORBES ICON ->
+
         <! - TITLE -><! - TITLE ->
 +
        <TextView<TextView
 +
            android: layout_width = "wrap_content"android: layout_width = "wrap_content"
 +
            android: layout_height = "wrap_content"android: layout_height = "wrap_content"
 +
            android: textAppearance = "? android: attr / textAppearanceSmall"android: textAppearance = "? android: attr / textAppearanceSmall"
 +
            android: text = "Title"android: text = "Title"
 +
            android: id = "@ + id / title"android: id = "@ + id / title"
 +
            android: layout_marginBottom = "10dp"android: layout_marginBottom = "10dp"
 +
            android: layout_toEndOf = "@ + id / image"android: layout_toEndOf = "@ + id / image"
 +
            android: layout_alignTop = "@ + id / image"android: layout_alignTop = "@ + id / image"
 +
            android: layout_marginStart = "16dp" />android: layout_marginStart = "16dp" />  
  
         <ImageView
+
         <! - DESCRIPTION -><! - DESCRIPTION ->
             android:layout_width = "48dp"
+
        <TextView<TextView
             android:layout_height = "48dp"
+
             android: layout_width = "wrap_content"android: layout_width = "wrap_content"
             android:id = "@+id/icon"
+
             android: layout_height = "wrap_content"android: layout_height = "wrap_content"
             android:layout_alignParentTop = "true"
+
            android: textAppearance = "? android: attr / textAppearanceSmall"android: textAppearance = "? android: attr / textAppearanceSmall"
             android:layout_alignParentLeft = "true"
+
             android: text = "Description"android: text = "Description"
            android:layout_alignParentStart = "true"
+
            Android: id = "@ + id / description"Android: id = "@ + id / description"
             android:src = "@drawable/forbes" />
+
             android: layout_marginBottom = "16dp"android: layout_marginBottom = "16dp"
 +
             android: layout_below = "@ + id / icon"android: layout_below = "@ + id / icon"
 +
             Android: layout_marginTop = "16dp" />Android: layout_marginTop = "16dp" />  
  
         <! - MARK FORBES ->
+
         <! - LINEA DIVISORIA -><! - LINEA DIVISORIA ->
 +
        <View<View
 +
            android: layout_width = "wrap_content"android: layout_width = "wrap_content"
 +
            android: layout_height = "1dp"android: layout_height = "1dp"
 +
            Android: id = "@ + id / line"Android: id = "@ + id / line"
 +
            Android: background = "# ffe9e9e9"Android: background = "# ffe9e9e9"
 +
            android: layout_below = "@ + id / description" />android: layout_below = "@ + id / description" />  
  
         <TextView
+
         <! - ICONO FORBES -><! - ICONO FORBES ->
             android:layout_width = "wrap_content"
+
        <ImageView<ImageView
            android:layout_height = "wrap_content"
+
             Android: layout_width = "48dp"Android: layout_width = "48dp"
             android:textAppearance = "?android:attr/textAppearanceSmall"
+
             Android: layout_height = "48dp"Android: layout_height = "48dp"
            android:text = "Forbes"
+
             Android: id = "@ + id / icon"Android: id = "@ + id / icon"
             android:id = "@+id/publisher"
+
             Android: layout_alignParentTop = "true"Android: layout_alignParentTop = "true"
            android:layout_toEndOf = "@+id/icon"
+
            android: layout_alignParentLeft = "true"android: layout_alignParentLeft = "true"
             android:textStyle = "bold"
+
            Android: layout_alignParentStart = "true"Android: layout_alignParentStart = "true"
             android:layout_marginStart = "16dp" />
+
             android: src = "@ drawable / forbes" />android: src = "@ drawable / forbes" />  
  
     </ RelativeLayout>
+
        <! - MARK FORBES -><! - MARK FORBES ->
    </android.support.v7.widget.CardView>
+
        <TextView<TextView
 +
            android: layout_width = "wrap_content"android: layout_width = "wrap_content"
 +
            android: layout_height = "wrap_content"android: layout_height = "wrap_content"
 +
            android: textAppearance = "? android: attr / textAppearanceSmall"android: textAppearance = "? android: attr / textAppearanceSmall"
 +
            android: text = "Forbes"android: text = "Forbes"
 +
            android: id = "@ + id / publisher"android: id = "@ + id / publisher"
 +
            android: layout_toEndOf = "@ + id / icon"android: layout_toEndOf = "@ + id / icon"
 +
            android: textStyle = "bold"android: textStyle = "bold"
 +
            android: layout_marginStart = "16dp" />android: layout_marginStart = "16dp" />
 +
     </ RelativeLayout></ RelativeLayout>
 +
</android.support.v7.widget.CardView></android.support.v7.widget.CardView>
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Please note that all contributions to WikiHTP are considered to be released under the Creative Commons Attribution-ShareAlike (see WikiHTP:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)