Android implementation up and down swipe quiz record
Last Update:2015-08-03
Source: Internet
Author: User
<span id="Label3"></p><p><p>Layout most outsourced One-layer scroll bar</p></p> <table class="syntaxhighlighter java" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter">12345678910111213</td> <td class="code"><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"><ScrollView</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:id=</code></code><code class="java string"><code class="java string">"@+id/scrollView1"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:layout_width=</code></code><code class="java string"><code class="java string">"match_parent"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:layout_height=</code></code><code class="java string"><code class="java string">"wrap_content"</code></code><code class="java plain"><code class="java plain">></code></code> <code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"><LinearLayout</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:layout_width=</code></code><code class="java string"><code class="java string">"match_parent"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:layout_height=</code></code><code class="java string"><code class="java string">"match_parent"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:orientation=</code></code><code class="java string"><code class="java string">"vertical"</code></code><code class="java plain"><code class="java plain">></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"></LinearLayout></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"></ScrollView></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">强制横竖屏</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">在配置文件中对Activity节点添加android:screenOrientation属性(landscape是横向,portrait是纵向)</code></code></td> </tr> </tbody> </table>Ask:<pre><pre>Sliding down to be able to succeed, but placed under the first layout, put on the outermost error,<br><br>There is no implementation of the lock screen, my configuration file is not the activity of this node, is not this node in addition to the attributes of what attributes, whether it is placed under the manifest</pre></pre>Chase Answer: <table class="syntaxhighlighter java" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="gutter">12345678910</td> <td class="code"><code class="java plain"><code class="java plain"><activity</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:name=</code></code><code class="java string"><code class="java string">".MainActivity"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:label=</code></code><code class="java string"><code class="java string">"@string/app_name"</code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain">android:screenOrientation = </code></code><code class="java string"><code class="java string">"landscape"</code></code><code class="java plain"><code class="java plain">></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"><intent-filter></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"><action android:name=</code></code><code class="java string"><code class="java string">"android.intent.action.MAIN"</code></code><code class="java plain"><code class="java plain">/></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"><category android:name=</code></code><code class="java string"><code class="java string">"android.intent.category.LAUNCHER"</code></code><code class="java plain"><code class="java plain">/></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"></intent-filter></code></code><code class="java spaces"><code class="java spaces"> </code></code><code class="java plain"><code class="java plain"></activity></code></code></td> </tr> </tbody> </table><p><p>The Android project cannot have no activity node</p></p><p><p>Android implementation up and down swipe quiz record</p></p></span>