18.07.2014 / 22:49 |  | 
Naik    Пользователь  
   Сейчас: Offline 
 Имя: %name% Регистрация: 14.03.2010
   | Бесплатные курсы программирования от Google  https://www.udacity.com/course/ud853(жать View courseware) За деньги можно получить персональную помощь.  Изменено Naik (18.07 / 22:50) (всего 1 раз) | 
  19.07.2014 / 08:58 |  | 
lehaAKO    Пользователь  
   Сейчас: Offline 
 Имя: Алексей Откуда: Малая Тавра-Екатеринбург(Свердловская область) Регистрация: 21.02.2013
   | Посмотрите пожалуйста почему не выводиться картинка(должна быть в самом начале слово нелло а под ним должна быть картинка) я написал чтобы текст выводил после картинки и при нажатии этой картинки текст должен меняться, все правильно написал ошибок там нет вроде и картинки нет
   Изменено lehaAKO (19.07 / 09:00) (всего 1 раз)
 Прикрепленные файлы:   OneGsme.zip (336.76 кб.) Скачано 34 раза   | 
  19.07.2014 / 10:05 |  | 
ilyaX2D    Пользователь  
   Сейчас: Offline 
 Регистрация: 07.03.2014
   | lehaAKO,  В TextView android:layout_height="fill_parent" - замени на wrap_content.
   | 
  19.07.2014 / 10:05 |  | 
aNNiMON    Супервизор 
   Сейчас: Offline 
 Имя: Витёк Регистрация: 11.01.2010
   | lehaAKO,  У тебя TextView на весь экран, а потом под ним (то есть за экраном) картинка. Поставь так <TextView  
    android:layout_height="wrap_content"   
  __________________
   let live  | 
  21.07.2014 / 13:47 |  | 
Pauk52    Пользователь  
   Сейчас: Offline 
 Имя: Володимир Откуда: Пески-радьковские Регистрация: 25.01.2011
   | есть layout  Открыть спойлер Закрыть спойлер <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
    xmlns:tools="http://schemas.android.com/tools"  
    android:id="@+id/LinearLayout1"  
    android:layout_width="match_parent"  
    android:layout_height="match_parent"  
    android:gravity="bottom"  
    android:orientation="vertical"  
    android:paddingBottom="@dimen/activity_vertical_margin"  
    android:paddingLeft="@dimen/activity_horizontal_margin"  
    android:paddingRight="@dimen/activity_horizontal_margin"  
    android:paddingTop="@dimen/activity_vertical_margin"  
    tools:context="com.gvg.calculator.MainActivity" >  
   
    <TextView  
        android:id="@+id/textView1"  
        android:layout_width="match_parent"  
        android:layout_height="50"  
        android:layout_gravity="top"  
        android:text="TextView" />  
   
    <LinearLayout  
        android:layout_width="match_parent"  
        android:layout_height="wrap_content" >  
   
        <Button  
            android:id="@+id/button1"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="1" />  
   
        <Button  
            android:id="@+id/button2"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="2" />  
   
        <Button  
            android:id="@+id/button3"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="3" />  
   
        <Button  
            android:id="@+id/button4"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="@string/plus" />  
   
    </LinearLayout>  
   
 <LinearLayout  
        android:layout_width="match_parent"  
        android:layout_height="wrap_content" >  
   
        <Button  
            android:id="@+id/button5"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="4" />  
   
        <Button  
            android:id="@+id/button6"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="5" />  
   
        <Button  
            android:id="@+id/button7"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="6" />  
   
        <Button  
            android:id="@+id/button8"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="@string/minus" />  
   
    </LinearLayout>  
 <LinearLayout  
        android:layout_width="match_parent"  
        android:layout_height="wrap_content" >  
   
        <Button  
            android:id="@+id/button9"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="7" />  
   
        <Button  
            android:id="@+id/button10"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="8" />  
   
        <Button  
            android:id="@+id/button11"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="9" />  
   
        <Button  
            android:id="@+id/button12"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="Button" />  
   
    </LinearLayout>  
   
     <LinearLayout  
         android:layout_width="match_parent"  
         android:layout_height="wrap_content"  
         android:gravity="bottom" >  
   
        <Button  
            android:id="@+id/button13"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="Button" />  
   
        <Button  
            android:id="@+id/button14"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="0" />  
   
        <Button  
            android:id="@+id/button15"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="." />  
   
        <Button  
            android:id="@+id/button16"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="@string/plus" />  
   
    </LinearLayout>  
</LinearLayout>  
 как заставить текст подняться вверх, через gravity не получаеться, на него реагирует только корневой layout.  Изменено Oak (21.07 / 13:51) (всего 1 раз) | 
  21.07.2014 / 13:51 |  | 
Oak    Пользователь  
   Сейчас: Offline 
 Имя: Коля Откуда: Москва Регистрация: 02.06.2010
   | Pauk52, под спойлер в следующий раз самостоятельно, пожалуйста.
  __________________
   Эль Презеденте  | 
  21.07.2014 / 13:58 |  | 
aNNiMON    Супервизор 
   Сейчас: Offline 
 Имя: Витёк Регистрация: 11.01.2010
   | Pauk52,  нарисуй как оно сейчас и как ты хочешь сделать.
  __________________
   let live  | 
  21.07.2014 / 16:36 |  | 
Pauk52    Пользователь  
   Сейчас: Offline 
 Имя: Володимир Откуда: Пески-радьковские Регистрация: 25.01.2011
   | можно вставить пустой TextView, но правильно ли это?
  
 Прикрепленные файлы:   n1.png (7.7 кб.) Скачано 187 раз   | 
  21.07.2014 / 18:27 |  | 
aNNiMON    Супервизор 
   Сейчас: Offline 
 Имя: Витёк Регистрация: 11.01.2010
   | Pauk52,  используй RelativeLayout, вместо корневого LinearLayout.
  __________________
   let live  | 
  22.07.2014 / 11:55 |  | 
iRomero    Пользователь  
   Сейчас: Offline 
 Имя: (Роман) Регистрация: 12.03.2014
   | Открыть спойлер Закрыть спойлер  import android.content.*;  
import android.os.*;  
import android.view.*;  
import android.view.View.*;  
import android.view.animation.*;  
import android.view.animation.Animation.*;  
import android.view.animation.AnimationUtils.*;  
import android.widget.*;  
import ru.bbbve.wof.*;  
   
public class Logo extends Abs  
{  
    LinearLayout logoLl;  
   
    protected void onCreate(Bundle savedInstanceState)  
    {  
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.logo);  
        startAni();//error RuntimeException:  
        //Unable to start activity ComponentInfo{}  
        //NpE  
    }  
   
    private void startAni()  
    {  
        logoLl = (LinearLayout)findViewById(R.id.logoLl);  
        Animation ani = AnimationUtils.loadAnimation(this, R.anim.logo_ani);  
        logoLl.startAnimation(ani);//error  
        ani.setAnimationListener(logoAniLis);  
        logoLl.setOnClickListener(logoLis);  
    }  
    OnClickListener logoLis = new OnClickListener()  
    {  
        public void onClick(View v)  
        {  
            next();  
        }  
    };  
    AnimationListener logoAniLis = new AnimationListener()  
    {  
        public void onAnimationStart(Animation p1)  
        {  
        }  
        public void onAnimationEnd(Animation p1)  
        {  
            next();  
        }  
        public void onAnimationRepeat(Animation p1)  
        {  
            Music.play(Logo.this,R.raw.intro);  
        }  
   
   
    };  
    private void next()  
    {  
        startActivity(new Intent(getApplicationContext(),Splash.class));  
        finish();  
    }  
    protected void onResume()  
    {  
        super.onResume();  
    }  
    protected void onPause()  
    {  
        super.onPause();  
    }  
   
    public void onBackPressed()  
    {  
        super.onBackPressed();  
    }  
}   
 Ошибка   до рефакторинга ее не было  |