Note that there are some explanatory texts on larger screens.

plurals
  1. POdefined xml layout in layout-land does not appear in android application
    primarykey
    data
    text
    <p>I am developing an application according to <a href="http://www.androidhive.info/2012/05/android-rss-reader-application-using-sqlite-part-1/" rel="noreferrer">this example</a>. I defined a landscape layout for header.xml in a layout-land folder, but when I change the orientation to landscape, defined layout does not appear in the screen.</p> <p>Do know Why ?</p> <p>Thanks</p> <p>Updated : </p> <p>Activity Code :</p> <pre><code>public class ACENewsFeedActivity extends ListActivity { // Progress Dialog private ProgressDialog pDialog; // Array list for list view ArrayList&lt;HashMap&lt;String, String&gt;&gt; rssItemList = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;(); RSSParser rssParser = new RSSParser(); List&lt;RSSItem&gt; rssItems = new ArrayList&lt;RSSItem&gt;(); RssFeed rssFeed; private static String TAG_TITLE = "title"; private static String TAG_LINK = "link"; private static String TAG_DESRIPTION = "description"; private static String TAG_PUB_DATE = "pubDate"; //private static String TAG_GUID = "guid"; // not used /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.rss_item_list); /** * Calling a backgroung thread will loads recent articles of a website * @param rss url of website * */ new loadRSSFeedItems().execute(); } .... } </code></pre> <p>XMl Layout in landscape mode :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutHeader" android:layout_width="fill_parent" android:layout_height="50dip" android:layout_alignParentTop="true" android:background="@layout/header_gradient" android:orientation="horizontal"&gt; &lt;!-- Logo --&gt; &lt;!-- Refresh --&gt; &lt;!-- Plus Button --&gt; &lt;ImageButton android:id="@+id/btnAddSite" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginRight="5dip" android:background="@null" android:src="@drawable/plus" android:layout_centerVertical="true" /&gt; &lt;ImageView android:id="@+id/logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:src="@drawable/logo" /&gt; &lt;ImageView android:id="@+id/refreshList" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:src="@drawable/refresh" /&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload