格尔茨,
所以这是一个简单的问题(也许不是一个简单的答案).我想要一个名为'send to back'的IB选项(在IB上,转到布局 - >发送回来)以编程方式完成.
可能吗?如果没有,有什么建议可以模拟同样的事情吗?
这是标题所述的UIImageView.
VerticalFieldManager中有一个ListField,我想修复VerticalFieldManager的高度.因为ListField底部有一个无尽的空白区域.
我正在尝试使用左侧的侧边栏和右侧的内容创建布局,这是我第一次使用此布局类型创建网站:
更新:
我已经更新了css,因为我做了一些更改,但我现在被告知我可以使用overflow:auto; 在#leftCol和#content上,页面将根据页面上的数据进行扩展.
我试过这个,但是它将我的内容div推到导航下,就像整个#leftCol丢失一样,因为我只留下了<li>选项
我怎么能这样做?
Doctype:HTML5
HTML:
<!DOCTYPE html>
<head>
</head>
<body>
<div id ="wrapper">
<div id ="header">
<h1 id = "companyName"></h1>
<h4 id = "companyQuote">""</h4>
</div>
<div id="leftCol">
<nav>
<ul>
<?php if($this->session->userdata('logged_in')): ?>
<li><?php echo anchor('admin/dashboard', 'Dashboard');?></li>
<li><a>Edit Pages<a>
<?php if(is_array($cms_pages)): ?>
<ul>
<?php foreach($cms_pages as $page): ?>
<li><a href="<?=base_url();?>admin/editpage/index/<?= $page->id ?>/<?php echo url_title($page->name,'dash', TRUE); ?>"><?=$page->name?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
<li><a>Gallery</a>
<ul>
<li><?php echo anchor('admin/addimage','Add Image');?></li>
<li><?php echo anchor('admin/deleteimage','Delete Image');?></li>
</ul>
</li> …Run Code Online (Sandbox Code Playgroud) <div id="content">
<div id="outer">
<div id="header">Transport</div>
<div id="image">
<img src="../images/img1.jpg" style="width:300px;height:300px"/>
</div>
<div id="right_content">large amount of text</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
上面的css是:
#content {
width: 100%;
min-height: 600px;
overflow: hidden;
border: 1px solid;
padding: 0;
margin: 0;
}
#outer {
border: 1px solid;
float: left;
overflow: hidden;
width: 100%;
min-height: 200px;
}
#header {
border: 1px solid;
width: 100%;
height: 20px;
background-color: #006A4D;
color: #ffffff;
padding: 10px;
font: normal 14px Helvetica, Arial, sans-serif;
line-height: 18px;
clear: both;
overflow: auto;
}
#right_content { …Run Code Online (Sandbox Code Playgroud) 在我的页面中包含很多layouts,我想为每个画一个角落,layout所以我尝试:
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffff"/>
<corners android:radius="5px"/>
<stroke android:width="2dip" android:color="#ababab"/>
<padding android:left="0dp"
android:top="0dp"
android:right="0dp"
android:bottom="0dp" />
</shape>
Run Code Online (Sandbox Code Playgroud)
所以颜色shape是白色但我想要的只是一个border并使用background默认值.
怎么设置呢?
我有两个活动,第一个是正确生成,但第二个不是.只显示xml文件中的第一个元素.这是我的xml文件:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/alternateActivity"
android:shadowColor="@color/shadowColor"></TextView>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/oldActivityButton"
android:text="@string/oldActivityButton"></Button>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/changeText"
android:text="@string/changeTextButton"></Button>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/originalText"
android:id="@+id/textToChange"></TextView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
这是我的活动对应:
package fsg.dev.activitytest;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class newActivity extends Activity {
private Button oldActivityButton;
private Button changeText;
private TextView textToChange;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.alternate);
oldActivityButton = (Button) findViewById(R.id.oldActivityButton);
changeText = (Button) findViewById(R.id.changeText);
textToChange = (TextView) findViewById(R.id.textToChange);
oldActivityButton.setOnClickListener(new OnClickListener(){ …Run Code Online (Sandbox Code Playgroud) 我是这个领域的新手,我写了一个div风格,对于firefox 4,opera 11.1和ie 8.0都没有正常工作但是对于chrome 11工作.代码是div的一个样式仅仅是以下不同的顺序
#info_text
{
background:#fdf6cc;
width: 650px;
margin-left:1px;
padding-left: 30px;
padding-right: 263;
min-height: 90px;
}
Run Code Online (Sandbox Code Playgroud)
以这种方式更改后,除了Internet Explorer 8.0之外,它适用于所有浏览器.
我可以做些什么来使它工作,或者这是浏览器的问题?在这种情况下它是否符合订单?
以下是我正在处理的内容的布局XML.它应该在显示屏顶部显示和编辑字段和一些按钮,其中ListView填满其余部分.但是只显示RelativeLayout中嵌入的项目.以下项目不显示.我不确定我在布局XML中做错了什么.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<RelativeLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10px">
<TextView android:id="@+id/tidName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Enter Name:" />
<EditText android:id="@+id/eidName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/tidName" />
<Button android:id="@+id/bidShow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tidName"
android:layout_alignParentRight="true"
android:layout_marginLeft="10px"
android:text="Show Search Results" />
<Button android:id="@+id/bidUseDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tidName"
android:layout_alignParentLeft="true"
android:layout_marginRight="10px"
android:text="Use Default" />
</RelativeLayout>
<Button
android:layout_below="@id/ridMain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Refresh" />
<ListView android:id="@+id/lidResults"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
提前致谢,
我有调用的布局,Main.XML我将方向设置为我的肖像AndroidManifest.xml.我设计了这个布局蜂窝太大,并把它放在在layout-xlarge-mdpi文件夹中,但我想使用 Main.XML在layout-xlarge-mdpi只在横向方向.
现在,怎么办呢?
谢谢
layout ×10
android ×4
css ×4
html ×4
xml ×2
blackberry ×1
border ×1
cocoa-touch ×1
html5 ×1
iphone ×1
java ×1
java-me ×1
listview ×1
objective-c ×1
shape ×1
uiimageview ×1